home *** CD-ROM | disk | FTP | other *** search
/ T&A 2 the Maxx 3 / T and A 2 The Maxx Number 3.iso / viewers / unixview / xflitar.z / xflitar / xflick.h < prev   
C/C++ Source or Header  |  1991-04-19  |  2KB  |  61 lines

  1. #define FHD_EXPAND_SIZE 102
  2. struct fli_header
  3. {
  4.     unsigned long fhd_size;    /* Length of whole file */
  5.     int fhd_magic;  /* 0xaf11 */
  6.     int fhd_frames;
  7.     int fhd_width; 
  8.     int fhd_height;
  9.     int fhd_gap;
  10.     int fhd_flags;
  11.     int fhd_speed;  /* # of ticks between frames */
  12.     unsigned long fhd_next;
  13.     unsigned long fhd_frit;
  14.     char fhd_expand[FHD_EXPAND_SIZE];
  15. };
  16.  
  17. #define FR_EXPAND_SIZE 8
  18. struct frame_header 
  19. {
  20.     unsigned long fr_size;       /* Frame size in bytes */
  21.     int fr_magic;     /* 0xf1fa */
  22.     int fr_chunks;    /* Number of chunks */
  23.     char fr_expand[FR_EXPAND_SIZE];
  24. };
  25.  
  26. struct chunk_header
  27. {
  28.     unsigned long ch_bytes;    /* # of bytes in this chunk */
  29.     int ch_type;    /* Type of chunk */
  30. };
  31.  
  32. #define FLI_COLOR 11    /* Compressed color map */
  33. #define FLI_LC    12    /* Line, compressed */
  34. #define FLI_BLACK 13    /* Set whole screen black */
  35. #define FLI_BRUN  15    /* Bytewise run-length compression-1st frame only */
  36. #define FLI_COPY  16    /* Uncompressed 64k to follow */
  37.  
  38. #define FLI_SYNC  255   /* Sent between each frame (NOT in .fli file) */
  39.  
  40. #define FLI_MAGIC 0xaf11
  41.  
  42. #define MAXCOL 256
  43.  
  44. #define SIZE_HEADER 128
  45. #define SIZE_FHEADER 16
  46. #define SIZE_CHEADER 6
  47.  
  48. #define grab_short(p,l,h)\
  49.     (((((unsigned char *)(p))[l] & 0x000000ff) + ((((unsigned char *)p)[h] & 0x000000ff) <<8)))
  50. #define get_long(p) ((grab_short(p,2,3)<<16) + grab_short(p,0,1))
  51. #define get_short(p) (grab_short(p,0,1)) & 0x0000ffff
  52.  
  53. #define SHORTSIZE 2
  54. #define LONGSIZE 4
  55.  
  56. #ifdef USE_MEMSET
  57. #define bcopy(a,b,n) memcpy(b,a,n)
  58. #define bzero(a,n) memset(a,0,n)
  59. #endif
  60.  
  61.